package com.vercon.moensmart.mode.request;

import org.json.JSONObject;

import java.io.Serializable;
import java.util.HashMap;

public class DeviceCommandRequest implements Serializable {

    public String device_id;
    public String product_id;

    public FaCommand desired;

    public DeviceCommandRequest(String device_id,String product_id,Command command){
        this.device_id = device_id;
        this.product_id = product_id;
        this.desired = new FaCommand(command);
    }

    public static class FaCommand{
        public Command state;
        public FaCommand(Command state){
            this.state = state;
        }
    }

    public static class Command{
        HashMap<String,Object> desired;
        public Command(HashMap<String,Object> desired){
            this.desired = desired;
        }
    }

}
